import {get, post} from '@/utils/http'
import {LoginInfo} from '@/models/home/login'

export const login = (data: LoginInfo) => {
    return post('/api/login/doLogin', data)
}

export const userRegister = (data: LoginInfo) => {
    return post('/api/login/register', data)
}

export const logout = () => {
    return post(`/api/login/doLogout`, {})
}